Optimal. Leaf size=166 \[ -\frac {5 (A-2 B) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 a^2 d}+\frac {(4 A-7 B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 d}+\frac {(4 A-7 B) \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{3 a^2 d (\cos (c+d x)+1)}-\frac {5 (A-2 B) \sin (c+d x) \sqrt {\cos (c+d x)}}{3 a^2 d}+\frac {(A-B) \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{3 d (a \cos (c+d x)+a)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.39, antiderivative size = 166, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.152, Rules used = {2977, 2748, 2639, 2635, 2641} \[ -\frac {5 (A-2 B) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 a^2 d}+\frac {(4 A-7 B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 d}+\frac {(4 A-7 B) \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{3 a^2 d (\cos (c+d x)+1)}-\frac {5 (A-2 B) \sin (c+d x) \sqrt {\cos (c+d x)}}{3 a^2 d}+\frac {(A-B) \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{3 d (a \cos (c+d x)+a)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2635
Rule 2639
Rule 2641
Rule 2748
Rule 2977
Rubi steps
\begin {align*} \int \frac {\cos ^{\frac {5}{2}}(c+d x) (A+B \cos (c+d x))}{(a+a \cos (c+d x))^2} \, dx &=\frac {(A-B) \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}+\frac {\int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (\frac {5}{2} a (A-B)-\frac {3}{2} a (A-3 B) \cos (c+d x)\right )}{a+a \cos (c+d x)} \, dx}{3 a^2}\\ &=\frac {(4 A-7 B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 a^2 d (1+\cos (c+d x))}+\frac {(A-B) \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}+\frac {\int \sqrt {\cos (c+d x)} \left (\frac {3}{2} a^2 (4 A-7 B)-\frac {15}{2} a^2 (A-2 B) \cos (c+d x)\right ) \, dx}{3 a^4}\\ &=\frac {(4 A-7 B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 a^2 d (1+\cos (c+d x))}+\frac {(A-B) \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}+\frac {(4 A-7 B) \int \sqrt {\cos (c+d x)} \, dx}{2 a^2}-\frac {(5 (A-2 B)) \int \cos ^{\frac {3}{2}}(c+d x) \, dx}{2 a^2}\\ &=\frac {(4 A-7 B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 d}-\frac {5 (A-2 B) \sqrt {\cos (c+d x)} \sin (c+d x)}{3 a^2 d}+\frac {(4 A-7 B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 a^2 d (1+\cos (c+d x))}+\frac {(A-B) \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}-\frac {(5 (A-2 B)) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{6 a^2}\\ &=\frac {(4 A-7 B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 d}-\frac {5 (A-2 B) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 a^2 d}-\frac {5 (A-2 B) \sqrt {\cos (c+d x)} \sin (c+d x)}{3 a^2 d}+\frac {(4 A-7 B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 a^2 d (1+\cos (c+d x))}+\frac {(A-B) \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 6.76, size = 1218, normalized size = 7.34 \[ \text {result too large to display} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.16, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (B \cos \left (d x + c\right )^{3} + A \cos \left (d x + c\right )^{2}\right )} \sqrt {\cos \left (d x + c\right )}}{a^{2} \cos \left (d x + c\right )^{2} + 2 \, a^{2} \cos \left (d x + c\right ) + a^{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \cos \left (d x + c\right ) + A\right )} \cos \left (d x + c\right )^{\frac {5}{2}}}{{\left (a \cos \left (d x + c\right ) + a\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 1.14, size = 435, normalized size = 2.62 \[ \frac {\sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (-16 B \left (\cos ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+24 A \left (\cos ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+10 A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (\cos ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+24 A \left (\cos ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-12 B \left (\cos ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-20 B \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (\cos ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-42 B \left (\cos ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-38 A \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+48 B \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+15 A \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-21 B \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-A +B \right )}{6 a^{2} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \cos \left (d x + c\right ) + A\right )} \cos \left (d x + c\right )^{\frac {5}{2}}}{{\left (a \cos \left (d x + c\right ) + a\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\cos \left (c+d\,x\right )}^{5/2}\,\left (A+B\,\cos \left (c+d\,x\right )\right )}{{\left (a+a\,\cos \left (c+d\,x\right )\right )}^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________